<template>
  <div class="map-view">
    <div class="left">
      <el-card
        shadow="hover"
      >
        <template v-slot:header>
          <div class="title">{{$t('dashboard.articleTitle')}}</div>
        </template>
        <template>
          <div class="chart-wrapper">
            <article-learn-num />
          </div>
        </template>
      </el-card>
    </div>
    <div class="right">
      <el-card shadow="hover">
        <template v-slot:header>
          <div class="title">{{$t('dashboard.NumberCourse')}}</div>
        </template>
        <template>
          <div class="chart-wrapper">
            <course-learn-num />
          </div>
        </template>
      </el-card>
    </div>
  </div>
</template>

<script>
import CourseLearnNum from "../CourseLearnNum";
import ArticleLearnNum from "../ArticleLearnNum";
import Gauge from "../Gauge";
import UserDevice from "../UserDevice";

export default {
  name: "index",
  components: {
    CourseLearnNum,
    ArticleLearnNum,
    Gauge,
    UserDevice,
  },
  data() {
    return {};
  },
  create() {},
  methods: {},
};
</script>

<style lang="scss" scoped>
.map-view {
  display: flex;
  margin-top: 20px;
  .left {
    flex: 0 0 50%;
    width: 80%;
    .title {
      display: flex;
      align-items: center;
      height: 60px;
      box-sizing: border-box;
      border-bottom: 1px solid #eee;
      font-size: 14px;
      font-weight: 500;
      padding: 0 0 0 20px;
    }
    .chart-wrapper {
      width: 100%;
      height: 200px;
    }
  }
  .right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 20px;
    .title {
      display: flex;
      align-items: center;
      height: 60px;
      box-sizing: border-box;
      border-bottom: 1px solid #eee;
      font-size: 14px;
      font-weight: 500;
      padding: 0 0 0 20px;
    }
    .chart-wrapper {
      width: 100%;
      height: 200px;
    }
  }
}
</style>
